const {
  resolve
} = require('path');
const express = require('express');
const app = express();

//访问静态目录
app.use('/', express.static(resolve(__dirname, '../modules')));

app.listen(8080);